CC = gcc

.PHONY: all
all: dump binary_view binary_edit zip_analysis archive_zip prtnum.dll compile analysis

dump: dump.c
	$(CC) -o dump dump.c

binary_view: binary_view.c
	$(CC) -o binary_view binary_view.c

binary_edit: binary_edit.c
	$(CC) -o binary_edit binary_edit.c

zip_analysis: zip.h zip_analysis.c
	$(CC) -o zip_analysis zip_analysis.c

archive_zip: zip.h archive_zip.c
	$(CC) -o archive_zip archive_zip.c

prtnum.dll: prtnum.c
	$(CC) -shared -o prtnum.dll prtnum.c

compile: compile.c
	$(CC) -o compile compile.c

analysis: analysis.c
	$(CC) -o analysis analysis.c

.PHONY: clean
clean:
	rm -f dump.exe binary_view.exe binary_edit.exe zip_analysis.exe archive_zip.exe prtnum.dll compile.exe analysis.exe
